package com.axs.logcollector;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import com.axs.logcollector.axs.FTPMode;

public class LogCollector implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	// Server info 
	private String serverIp; // Connect to AMS server by default account amssys/amssys 
	private Map<String, List<String>> selectedLogs;
	
	// Ticket info 
	private String jiraAddress; // default http://tiger.in.alcatel-lucent.com:8091
	private String ticketId;
	private String jiraUserName;
	private String jiraPassword;
	private boolean compress; 
	private AttachmentType attachmentType; // Attach logs to JIRA ticket or FTP server 
	private boolean autoAttachFtp; // Attach logs to FTP server if logs is greater then 10MB 
	private String logName;
	private String comment;
	
	// FTP server info 
	private FTPMode ftpMode;
	private String ftpAdrress;
	private String ftpUserName;
	private String ftpPassword;
	
	public LogCollector() {
	}
	
	public String getServerIp() {
		return serverIp;
	}

	public void setServerIp(String serverIp) {
		this.serverIp = serverIp;
	}

	public String getJiraAddress() {
		return jiraAddress;
	}

	public void setJiraAddress(String jiraAddress) {
		this.jiraAddress = jiraAddress;
	}

	public String getTicketId() {
		return ticketId;
	}

	public void setTicketId(String ticketId) {
		this.ticketId = ticketId;
	}

	public String getJiraUserName() {
		return jiraUserName;
	}

	public void setJiraUserName(String jiraUserName) {
		this.jiraUserName = jiraUserName;
	}

	public String getJiraPassword() {
		return jiraPassword;
	}

	public void setJiraPassword(String jiraPassword) {
		this.jiraPassword = jiraPassword;
	}

	public boolean isCompress() {
		return compress;
	}

	public void setCompress(boolean compress) {
		this.compress = compress;
	}

	public AttachmentType getAttachmentType() {
		return attachmentType;
	}

	public void setAttachmentType(AttachmentType attachmentType) {
		this.attachmentType = attachmentType;
	}

	public boolean isAutoAttachFtp() {
		return autoAttachFtp;
	}

	public void setAutoAttachFtp(boolean autoAttachFtp) {
		this.autoAttachFtp = autoAttachFtp;
	}

	public String getLogName() {
		return logName;
	}

	public void setLogName(String logName) {
		this.logName = logName;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getFtpUserName() {
		return ftpUserName;
	}

	public void setFtpUserName(String ftpUserName) {
		this.ftpUserName = ftpUserName;
	}

	public String getFtpPassword() {
		return ftpPassword;
	}

	public void setFtpPassword(String ftpPassword) {
		this.ftpPassword = ftpPassword;
	}

	public Map<String, List<String>> getSelectedLogs() {
		return selectedLogs;
	}

	public void setSelectedLogs(Map<String, List<String>> selectedLogs) {
		this.selectedLogs = selectedLogs;
	}

	public FTPMode getFtpMode() {
		return ftpMode;
	}

	public void setFtpMode(FTPMode ftpMode) {
		this.ftpMode = ftpMode;
	}

	public String getFtpAdrress() {
		return ftpAdrress;
	}

	public void setFtpAdrress(String ftpAdrress) {
		this.ftpAdrress = ftpAdrress;
	}
}
